package com.scpii.api.common.auth.token;

import org.springframework.security.core.AuthenticationException;

import com.scpii.api.common.auth.AuthorizationRequest;
import com.scpii.api.common.auth.ClientAuthentication;

public interface AuthorizationServerTokenServices {

	AuthAccessToken createAccessToken(ClientAuthentication authentication)
			throws AuthenticationException;

	AuthAccessToken refreshAccessToken(String refreshToken,
			AuthorizationRequest request) throws AuthenticationException;

	AuthAccessToken getAccessToken(ClientAuthentication authentication);

}